200
|
How do I arrange my columns on multiple lines

with List1 do
begin
HeaderHeight := 32;
(IUnknown(Columns.Add('')) as EXLISTLib_TLB.Column).HTMLCaption := 'Line 1<br>Line 2';
end
|
199
|
How can I display all cells using HTML format

with List1 do
begin
(IUnknown(Columns.Add('HTML')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCaptionFormat] := OleVariant(1);
Items.Add('<font ;12>T</font>his <b>is</b> an <a>html</a> <font Tahoma><fgcolor=FF0000>text</fgcolor></font>.');
end
|
198
|
How can I display all cells using multiple lines

with List1 do
begin
(IUnknown(Columns.Add('MultipleLine')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellSingleLine] := OleVariant(False);
(IUnknown(Columns.Add('SingleLine')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellSingleLine] := OleVariant(True);
with Items do
begin
Caption[Add('This is a bit of long text that should break the line'),OleVariant(1)] := 'this is a bit of long text that''s displayed on a single line';
end;
end
|
197
|
How do change the vertical alignment for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('MultipleLine')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellSingleLine] := OleVariant(False);
(IUnknown(Columns.Add('VAlign')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellVAlignment] := OleVariant(2);
with Items do
begin
Caption[Add('This is a bit of long text that should break the line'),OleVariant(1)] := 'bottom';
end;
with Items do
begin
Caption[Add('This is a bit of long text that should break the line'),OleVariant(1)] := 'bottom';
end;
end
|
196
|
How do change the foreground color for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('ForeColor')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellForeColor] := OleVariant(255);
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
195
|
How do change the background color for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('BackColor')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellBackColor] := OleVariant(255);
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
194
|
How do I show buttons for all cells in the column

with List1 do
begin
with (IUnknown(Columns.Add('Button')) as EXLISTLib_TLB.Column) do
begin
Def[EXLISTLib_TLB.exCellHasButton] := OleVariant(True);
Def[Integer(EXLISTLib_TLB.exCellHasButton) Or Integer(EXLISTLib_TLB.exCellHasRadioButton)] := OleVariant(True);
end;
Items.Add(' Button 1 ');
Items.Add(' Button 2 ');
end
|
193
|
How do I show buttons for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('Button')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasButton] := OleVariant(True);
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
192
|
How do I display radio buttons for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('Radio')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasRadioButton] := OleVariant(True);
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
191
|
How do I display checkboxes for all cells in the column

with List1 do
begin
(IUnknown(Columns.Add('Check')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasCheckBox] := OleVariant(True);
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
190
|
How can I display a tooltip when the cursor hovers the column

with List1 do
begin
(IUnknown(Columns.Add('tooltip')) as EXLISTLib_TLB.Column).ToolTip := 'This is a bit of text that is shown when user hovers the column.';
end
|
189
|
Is there any function to assign a key to a column instead using its name or capion

with List1 do
begin
(IUnknown(Columns.Add('Data')) as EXLISTLib_TLB.Column).Key := 'DKey';
Columns.Item['DKey'].Caption := 'new caption';
end
|
188
|
Is there any function to assign any extra data to a column

with List1 do
begin
(IUnknown(Columns.Add('Data')) as EXLISTLib_TLB.Column).Data := 'your extra data';
end
|
187
|
By default, the column gets sorted descending, when I first click its header. How can I change so the column gets sorted ascending when the user first clicks the column's header

with List1 do
begin
(IUnknown(Columns.Add('Sort')) as EXLISTLib_TLB.Column).DefaultSortOrder := True;
end
|
186
|
How can I specify the maximum width for the column, if I use WidthAutoResize property

with List1 do
begin
with (IUnknown(Columns.Add('Auto')) as EXLISTLib_TLB.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
MaxWidthAutoResize := 128;
end;
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
185
|
How can I specify the minimum width for the column, if I use WidthAutoResize property

with List1 do
begin
with (IUnknown(Columns.Add('Auto')) as EXLISTLib_TLB.Column) do
begin
WidthAutoResize := True;
MinWidthAutoResize := 32;
end;
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
184
|
Is there any option to resize the column based on its data, captions

with List1 do
begin
(IUnknown(Columns.Add('A')) as EXLISTLib_TLB.Column).WidthAutoResize := True;
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
183
|
How can I align the icon in the column's header in the center

with List1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (IUnknown(Columns.Add('')) as EXLISTLib_TLB.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXLISTLib_TLB.CenterAlignment;
end;
end
|
182
|
How do I align the icon in the column's header to the right

with List1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
with (IUnknown(Columns.Add('ColumnName')) as EXLISTLib_TLB.Column) do
begin
HeaderImage := 1;
HeaderImageAlignment := EXLISTLib_TLB.RightAlignment;
end;
end
|
181
|
How do I show or hide the sorting icons, but still need sorting

with List1 do
begin
(IUnknown(Columns.Add('Sorted')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending;
Columns.Item[OleVariant(0)].DisplaySortIcon := False;
end
|
180
|
How do I enable or disable the entire column

with List1 do
begin
Columns.Add('C1');
(IUnknown(Columns.Add('Disabled')) as EXLISTLib_TLB.Column).Enabled := False;
with Items do
begin
Caption[Add(OleVariant(0)),OleVariant(1)] := '0.1';
end;
with Items do
begin
Caption[Add(OleVariant(1)),OleVariant(1)] := '1.1';
end;
end
|
179
|
How do I disable drag and drop columns
with List1 do
begin
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).AllowDragging := False;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).AllowDragging := False;
end
|
178
|
How do I disable resizing a column at runtime

with List1 do
begin
(IUnknown(Columns.Add('Unsizable')) as EXLISTLib_TLB.Column).AllowSizing := False;
Columns.Add('C2');
Columns.Add('C3');
Columns.Add('C4');
end
|
177
|
How can I align the column to the right, and its caption too

with List1 do
begin
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
Alignment := EXLISTLib_TLB.RightAlignment;
HeaderAlignment := EXLISTLib_TLB.RightAlignment;
end;
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
176
|
How can I align the column to the right

with List1 do
begin
(IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column).Alignment := EXLISTLib_TLB.RightAlignment;
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
end
|
175
|
How do I change the column's caption

with List1 do
begin
(IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column).Caption := 'new caption';
end
|
174
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions, after the user clicks it

with List1 do
begin
FormatAnchor[False] := '<b><u><fgcolor=880000> </fgcolor></u></b>';
Columns.Add('Column');
with Items do
begin
CaptionFormat[Add('Just an <a1>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML;
end;
with Items do
begin
CaptionFormat[Add('Just another <a2>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML;
end;
Items.Add('next item');
end
|
173
|
Can I change the visual effect, appearance for the anchor, hyperlink elements, in HTML captions

with List1 do
begin
FormatAnchor[True] := '<b><u><fgcolor=FF0000> </fgcolor></u></b>';
Columns.Add('Column');
with Items do
begin
CaptionFormat[Add('Just an <a1>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML;
end;
with Items do
begin
CaptionFormat[Add('Just another <a2>anchor</a> element ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML;
end;
end
|
172
|
Can I change the font for the tooltip

with List1 do
begin
ToolTipDelay := 1;
ToolTipWidth := 364;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := '<br><font Tahoma;14>this</font> is a tooltip assigned to a column<br>';
end
|
171
|
Can I change the font for the tooltip

with List1 do
begin
ToolTipDelay := 1;
with ToolTipFont do
begin
Name := 'Tahoma';
Size := 14;
end;
ToolTipWidth := 364;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
170
|
Can I change the order of the buttons in the scroll bar

with List1 do
begin
ScrollOrderParts[EXLISTLib_TLB.exHScroll] := 't,l,r';
ScrollOrderParts[EXLISTLib_TLB.exVScroll] := 't,l,r';
ScrollBars := EXLISTLib_TLB.DisableBoth;
end
|
169
|
The thumb size seems to be very small. Can I make it bigger

with List1 do
begin
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).Width := 256;
ScrollThumbSize[EXLISTLib_TLB.exHScroll] := 64;
end
|
168
|
How can I display my text on the scroll bar, using a different font

with List1 do
begin
ScrollPartCaption[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exThumbPart] := 'This is <s><font Tahoma;12> just </font></s> text';
ColumnAutoResize := False;
ScrollHeight := 20;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).Width := 256;
end
|
167
|
How can I display my text on the scroll bar, using a different font

with List1 do
begin
ScrollPartCaption[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exThumbPart] := 'This is just a text';
ScrollFont[EXLISTLib_TLB.exHScroll].Size := 12;
ColumnAutoResize := False;
ScrollHeight := 20;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).Width := 256;
end
|
166
|
How can I display my text on the scroll bar

with List1 do
begin
ScrollPartCaption[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exThumbPart] := 'this is just a text';
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).Width := 256;
end
|
165
|
How do I enlarge or change the size of the control's scrollbars

with List1 do
begin
ScrollHeight := 18;
ScrollWidth := 18;
ScrollButtonWidth := 18;
ScrollButtonHeight := 18;
ScrollBars := EXLISTLib_TLB.DisableBoth;
end
|
164
|
How do I assign a tooltip to a scrollbar

with List1 do
begin
ScrollToolTip[EXLISTLib_TLB.exHScroll] := 'This is a tooltip being shown when you click and drag the thumb in the horizontal scroll bar';
ColumnAutoResize := False;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).Width := 256;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).Width := 256;
end
|
163
|
How do I assign an icon to the button in the scrollbar

with List1 do
begin
Images('gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTql' +
'Vq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m0' +
'ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/yN' +
'AOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA=');
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB1Part] := True;
ScrollPartCaption[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB1Part] := '<img>1</img>';
ScrollHeight := 18;
ScrollButtonWidth := 18;
ScrollBars := EXLISTLib_TLB.DisableNoHorizontal;
end
|
162
|
I need to add a button in the scroll bar. Is this possible

with List1 do
begin
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB1Part] := True;
ScrollPartCaption[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB1Part] := '1';
ScrollBars := EXLISTLib_TLB.DisableNoHorizontal;
end
|
161
|
Can I display an additional buttons in the scroll bar

with List1 do
begin
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB1Part] := True;
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exLeftB2Part] := True;
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exRightB6Part] := True;
ScrollPartVisible[EXLISTLib_TLB.exHScroll,EXLISTLib_TLB.exRightB5Part] := True;
ScrollBars := EXLISTLib_TLB.DisableNoHorizontal;
end
|
160
|
How can I display a custom size picture to a cell or item

with List1 do
begin
DefaultItemHeight := 48;
Columns.Add('C1');
with Items do
begin
CellPicture[Add('Text'),OleVariant(0)] := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)');
end;
end
|
159
|
How can I display a multiple pictures to a cell or item

with List1 do
begin
DefaultItemHeight := 48;
HTMLPicture['pic1'] := 'c:\exontrol\images\zipdisk.gif';
HTMLPicture['pic2'] := 'c:\exontrol\images\auction.gif';
Columns.Add('C1');
with Items do
begin
CaptionFormat[Add('<img>pic1</img> Text <img>pic2</img> another text ...'),OleVariant(0)] := EXLISTLib_TLB.exHTML;
end;
end
|
158
|
How do I change the column's foreground color for numbers between an interval - Range

with List1 do
begin
with ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null) do
begin
Bold := True;
ForeColor := $ff;
ApplyTo := EXLISTLib_TLB.FormatApplyToEnum($1);
end;
Columns.Add('N1');
Columns.Add('N2');
with Items do
begin
Caption[Add(OleVariant(1)),OleVariant(1)] := OleVariant(2);
end;
with Items do
begin
Caption[Add(OleVariant(3)),OleVariant(1)] := OleVariant(3);
end;
with Items do
begin
Caption[Add(OleVariant(10)),OleVariant(1)] := OleVariant(11);
end;
with Items do
begin
Caption[Add(OleVariant(13)),OleVariant(1)] := OleVariant(31);
end;
SearchColumnIndex := 1;
end
|
157
|
How do I change the item's foreground color for numbers between an interval - Range

with List1 do
begin
ConditionalFormats.Add('%0 >= 2 and %0 <= 10',Null).ForeColor := $ff;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
156
|
How do I change the item's background color for numbers less than a value

with List1 do
begin
ConditionalFormats.Add('%0 < 10',Null).BackColor := $ff;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
155
|
How do I underline the numbers greater than a value

with List1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Underline := True;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
154
|
How do I highlight in italic the numbers greater than a value

with List1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).StrikeOut := True;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
153
|
How do I highlight in italic the numbers greater than a value

with List1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Italic := True;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
152
|
How do I highlight in bold the numbers greater than a value

with List1 do
begin
ConditionalFormats.Add('%0 >= 10',Null).Bold := True;
Columns.Add('Numbers');
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(10));
Items.Add(OleVariant(20));
end
|
151
|
Can I use your EBN files to change the visual appearance for radio buttons

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
RadioImage[False] := 16777216;
RadioImage[True] := 33554432;
(IUnknown(Columns.Add('Radio')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasRadioButton] := OleVariant(True);
with Items do
begin
Add('Radio 1');
CellState[Add('Radio 2'),OleVariant(0)] := 1;
Add('Radio 3');
end;
end
|
150
|
Can I use your EBN files to change the visual appearance for checkbox cells

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
CheckImage[EXLISTLib_TLB.Unchecked] := 16777216;
CheckImage[EXLISTLib_TLB.Checked] := 33554432;
(IUnknown(Columns.Add('Check')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasCheckBox] := OleVariant(True);
with Items do
begin
Add('Check 1');
CellState[Add('Check 2'),OleVariant(0)] := 1;
end;
end
|
149
|
How do I change the visual aspect for thumb parts in the scroll bars, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXLISTLib_TLB.exHSThumb] := $1000000;
Background[EXLISTLib_TLB.exHSThumbP] := $2000000;
Background[EXLISTLib_TLB.exHSThumbH] := $3000000;
Background[EXLISTLib_TLB.exVSThumb] := $1000000;
Background[EXLISTLib_TLB.exVSThumbP] := $2000000;
Background[EXLISTLib_TLB.exVSThumbH] := $3000000;
ColumnAutoResize := False;
ScrollBySingleLine := True;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 483;
with Items do
begin
ItemHeight[Add('Item 1')] := 248;
end;
Items.Add('Item 2');
end
|
148
|
How do I change the visual aspect only for the thumb in the scroll bar, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXLISTLib_TLB.exHSThumb] := $1000000;
Background[EXLISTLib_TLB.exHSThumbP] := $2000000;
Background[EXLISTLib_TLB.exHSThumbH] := $3000000;
ColumnAutoResize := False;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 483;
end
|
147
|
I've seen that you can change the visual appearance for the scroll bar. How can I do that

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
VisualAppearance.Add(3,'c:\exontrol\images\hot.ebn');
Background[EXLISTLib_TLB.exSBtn] := $1000000;
Background[EXLISTLib_TLB.exSBtnP] := $2000000;
Background[EXLISTLib_TLB.exSBtnH] := $3000000;
Background[EXLISTLib_TLB.exHSBack] := $f0f0f0;
Background[EXLISTLib_TLB.exVSBack] := $f0f0f0;
Background[EXLISTLib_TLB.exScrollSizeGrip] := $f0f0f0;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E1')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E2')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E3')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E4')) as EXLISTLib_TLB.Column).Width := 32;
ColumnAutoResize := False;
ScrollBars := EXLISTLib_TLB.DisableBoth;
end
|
146
|
Is there any option to highligth the column from the cursor - point

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXLISTLib_TLB.exCursorHoverColumn] := $1000000;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E1')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E2')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E3')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E4')) as EXLISTLib_TLB.Column).Width := 32;
end
|
145
|
How do I change the visual aspect of selected item in the drop down filter window, using your EBN technology

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXLISTLib_TLB.exSelBackColorFilter] := $1000000;
Background[EXLISTLib_TLB.exSelForeColorFilter] := $1414ff;
(IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column).DisplayFilterButton := True;
end
|
144
|
How do I change the visual aspect of the drop down calendar window, that shows up if I click the drop down filter button, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
Background[EXLISTLib_TLB.exDateHeader] := $1000000;
Background[EXLISTLib_TLB.exDateTodayUp] := $1000000;
Background[EXLISTLib_TLB.exDateTodayDown] := $2000000;
Background[EXLISTLib_TLB.exDateScrollThumb] := $1000000;
Background[EXLISTLib_TLB.exDateScrollRange] := $e6e6e6;
Background[EXLISTLib_TLB.exDateSeparatorBar] := $e6e6e6;
Background[EXLISTLib_TLB.exDateSelect] := $1000000;
with (IUnknown(Columns.Add('Date')) as EXLISTLib_TLB.Column) do
begin
FilterType := EXLISTLib_TLB.exDate;
DisplayFilterButton := True;
DisplayFilterDate := True;
end;
end
|
143
|
How do I change the visual aspect of the close button in the filter bar, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXLISTLib_TLB.exFooterFilterBarButton] := $1000000;
(IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column).FilterType := EXLISTLib_TLB.exBlanks;
ApplyFilter();
end
|
142
|
How do I change the visual aspect of buttons in the cell, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
Background[EXLISTLib_TLB.exCellButtonUp] := $1000000;
Background[EXLISTLib_TLB.exCellButtonDown] := $2000000;
SelForeColor := RGB(0,0,0);
ShowFocusRect := False;
(IUnknown(Columns.Add('Column 1')) as EXLISTLib_TLB.Column).Def[EXLISTLib_TLB.exCellHasButton] := OleVariant(True);
Items.Add('Button 1');
Items.Add('Button 2');
Columns.Add('Column 2');
end
|
141
|
How do I change the visual aspect of the drop down filter button, using EBN

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
Background[EXLISTLib_TLB.exHeaderFilterBarButton] := $1000000;
(IUnknown(Columns.Add('Filter')) as EXLISTLib_TLB.Column).DisplayFilterButton := True;
end
|
140
|
How do I enable resizing the columns at runtime

with List1 do
begin
ColumnsAllowSizing := True;
MarkSearchColumn := False;
HeaderVisible := False;
Columns.Add('Column 1');
Columns.Add('Column 2');
DrawGridLines := EXLISTLib_TLB.exVLines;
with Items do
begin
Caption[Add('Item 1'),OleVariant(1)] := 'Sub Item 1';
end;
with Items do
begin
Caption[Add('Item 2'),OleVariant(1)] := 'Sub Item 2';
end;
end
|
139
|
How can I sort by multiple columns

with List1 do
begin
SingleSort := False;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortDescending;
(IUnknown(Columns.Add('C3')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending;
end
|
138
|
How can I add several columns to control's sort bar

with List1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortDescending;
end
|
137
|
How can I change the width of the columns being displayed in the sort bar

with List1 do
begin
SortBarVisible := True;
SortBarColumnWidth := 48;
(IUnknown(Columns.Add('C1')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortAscending;
(IUnknown(Columns.Add('C2')) as EXLISTLib_TLB.Column).SortOrder := EXLISTLib_TLB.SortDescending;
end
|
136
|
How can I change the height of the sort bar's

with List1 do
begin
SortBarVisible := True;
SortBarHeight := 48;
end
|
135
|
How can I change the sort bar's foreground color

with List1 do
begin
SortBarVisible := True;
ForeColorSortBar := RGB(255,0,0);
end
|
134
|
How can I change the visual appearance of the control's sort bar, using EBN files

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
VisualAppearance.Add(2,'c:\exontrol\images\pushed.ebn');
SortBarVisible := True;
BackColorSortBar := $1000000;
BackColorSortBarCaption := $2000000;
Appearance := EXLISTLib_TLB.None2;
end
|
133
|
How can I change the sort bar's background color

with List1 do
begin
SortBarVisible := True;
BackColorSortBar := RGB(255,0,0);
BackColorSortBarCaption := RGB(128,0,0);
end
|
132
|
How can I change the default caption being displayed in the control's sort bar

with List1 do
begin
SortBarVisible := True;
SortBarCaption := 'new caption';
end
|
131
|
How can I show the control's sort bar

with List1 do
begin
SortBarVisible := True;
end
|
130
|
How can I stretch a picture on the control's header, when multiple levels are displayed, so it is not tiled

with List1 do
begin
PictureLevelHeader := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)');
PictureDisplayLevelHeader := EXLISTLib_TLB.Stretch;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E1')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E2')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E3')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('E4')) as EXLISTLib_TLB.Column).Width := 32;
end
|
129
|
How can I display a picture on the control's header, when multiple levels are displayed, so it is not tiled

with List1 do
begin
PictureLevelHeader := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\colorize.gif`)');
PictureDisplayLevelHeader := EXLISTLib_TLB.MiddleRight;
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('E')) as EXLISTLib_TLB.Column).Width := 32;
end
|
128
|
How can I display a picture on the control's header, when multiple levels are displayed

with List1 do
begin
PictureLevelHeader := List1.ExecuteTemplate('loadpicture(`c:\exontrol\images\zipdisk.gif`)');
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
end
|
127
|
How can I change the header's background color, when multiple levels are displayed
with List1 do
begin
BackColorLevelHeader := RGB(250,0,0);
(IUnknown(Columns.Add('S')) as EXLISTLib_TLB.Column).Width := 32;
(IUnknown(Columns.Add('Level 1')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 2')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
(IUnknown(Columns.Add('Level 3')) as EXLISTLib_TLB.Column).LevelKey := OleVariant(1);
end
|
126
|
Can I programmatically scroll the control

with List1 do
begin
DefaultItemHeight := 32;
Columns.Add('Column');
Items.Add(OleVariant(0));
Items.Add(OleVariant(1));
Items.Add(OleVariant(2));
Items.Add(OleVariant(3));
PutItems(GetItems(OleVariant(0)),Null);
PutItems(GetItems(OleVariant(0)),Null);
ScrollPos[True] := 1;
end
|
125
|
Do you have some function to load data from a safe array
with List1 do
begin
Columns.Add('Column');
Items.Add(OleVariant(0));
PutItems(GetItems(OleVariant(0)),Null);
end
|
124
|
Do you have some function to retrieve all items to a safe array
with List1 do
begin
Columns.Add('Column');
Items.Add(OleVariant(0));
PutItems(GetItems(OleVariant(0)),Null);
Items.Add(OleVariant(1));
PutItems(GetItems(OleVariant(0)),Null);
Items.Add(OleVariant(2));
PutItems(GetItems(OleVariant(0)),Null);
Items.Add(OleVariant(3));
end
|
123
|
How can still display the selected items when the control loses the focus

with List1 do
begin
HideSelection := False;
Columns.Add('Column');
with Items do
begin
Add('Item 3');
Add('Item 1');
SelectItem[Add('Item 2')] := True;
end;
end
|
122
|
How can I hide a column

with List1 do
begin
(IUnknown(Columns.Add('Hidden')) as EXLISTLib_TLB.Column).Visible := False;
Columns.Add('2');
Columns.Add('3');
Columns.Add('4');
Columns.Add('5');
end
|
121
|
How can I ensure that a column is visible and fits the control's client area
with List1 do
begin
ColumnAutoResize := False;
(IUnknown(Columns.Add('1')) as EXLISTLib_TLB.Column).Width := 128;
(IUnknown(Columns.Add('2')) as EXLISTLib_TLB.Column).Width := 128;
(IUnknown(Columns.Add('3')) as EXLISTLib_TLB.Column).Width := 128;
(IUnknown(Columns.Add('4')) as EXLISTLib_TLB.Column).Width := 128;
(IUnknown(Columns.Add('5')) as EXLISTLib_TLB.Column).Width := 128;
Items.EnsureVisibleColumn('5');
end
|
120
|
I've seen that the width of the tooltip is variable. Can I make it larger

with List1 do
begin
ToolTipWidth := 328;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip that should be very very very very very very very long';
end
|
119
|
How do I disable showing the tooltip for all control
with List1 do
begin
ToolTipDelay := 0;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
118
|
How do I let the tooltip being displayed longer

with List1 do
begin
ToolTipPopDelay := 10000;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
117
|
How do I show the tooltip quicker
with List1 do
begin
ToolTipDelay := 1;
(IUnknown(Columns.Add('tootip')) as EXLISTLib_TLB.Column).ToolTip := 'this is a tooltip assigned to a column';
end
|
116
|
How do I change the caption being displayed in the control's filter bar

with List1 do
begin
FilterBarCaption := 'your filter caption';
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
115
|
How do I search case sensitive, using your incremental search feature

with List1 do
begin
AutoSearch := True;
with Columns do
begin
(IUnknown(Add('exStartWith')) as EXLISTLib_TLB.Column).AutoSearch := EXLISTLib_TLB.exStartWith;
(IUnknown(Add('exContains')) as EXLISTLib_TLB.Column).AutoSearch := EXLISTLib_TLB.exContains;
end;
with Items do
begin
Caption[Add('text'),OleVariant(1)] := 'another text';
end;
with Items do
begin
Caption[Add('text'),OleVariant(1)] := 'another text';
end;
end
|
114
|
How do I disable the control
with List1 do
begin
Enabled := False;
end
|
113
|
How do I enable the incremental search feature within a column

with List1 do
begin
AutoSearch := True;
with Columns do
begin
(IUnknown(Add('exStartWith')) as EXLISTLib_TLB.Column).AutoSearch := EXLISTLib_TLB.exStartWith;
(IUnknown(Add('exContains')) as EXLISTLib_TLB.Column).AutoSearch := EXLISTLib_TLB.exContains;
end;
with Items do
begin
Caption[Add('text'),OleVariant(1)] := 'another text';
end;
with Items do
begin
Caption[Add('text'),OleVariant(1)] := 'another text';
end;
end
|
112
|
How do I call your x-script language

with List1 do
begin
with (IUnknown(ExecuteTemplate('Columns.Add(`Column`)')) as EXLISTLib_TLB.Column) do
begin
HeaderStrikeOut := True;
HeaderBold := True;
end;
end
|
111
|
How do I call your x-script language

with List1 do
begin
Template := 'Columns.Add(`Column`).HTMLCaption = `<b>C</b>olumn`';
end
|
110
|
How do I show alternate rows in different background color

with List1 do
begin
BackColorAlternate := RGB(240,240,240);
Columns.Add('Column');
with Items do
begin
Add('Item 1');
Add('Item 2');
Add('Item 3');
Add('Item 4');
Add('Item 5');
end;
end
|
109
|
How do I enlarge the drop down filter window

with List1 do
begin
FilterBarDropDownHeight := -320;
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterBarDropDownWidth := -320;
end;
Items.Add('Item 1');
Items.Add('Item 2');
end
|
108
|
How do I filter programatically the control

with List1 do
begin
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exPattern;
Filter := 'Item*';
end;
Items.Add('Item 1');
Items.Add('');
Items.Add('Item 2');
ApplyFilter();
end
|
107
|
How do I change the font of the control's filterbar

with List1 do
begin
FilterBarFont.Size := 20;
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
106
|
Can I apply an EBN skin to the control's filter bar so I can change its visual appearance

with List1 do
begin
VisualAppearance.Add(1,'c:\exontrol\images\normal.ebn');
FilterBarBackColor := $1000000;
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
105
|
How do I change the background color of the control's filterbar

with List1 do
begin
FilterBarBackColor := RGB(240,240,240);
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
104
|
How do I change the foreground color of the control's filterbar

with List1 do
begin
FilterBarForeColor := RGB(255,0,0);
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
103
|
How do I change the height of the control's filterbar

with List1 do
begin
FilterBarHeight := 32;
with (IUnknown(Columns.Add('Column')) as EXLISTLib_TLB.Column) do
begin
DisplayFilterButton := True;
FilterType := EXLISTLib_TLB.exBlanks;
end;
ApplyFilter();
end
|
102
|
How do select only a portion of text when the control starts editing a cell

with List1 do
begin
AllowEdit := True;
SelStart := 1;
SelLength := 1;
Columns.Add('Column');
Items.Add('Item 1');
Items.Add('Item 2');
end
|
101
|
How do I change the header's foreground color

with List1 do
begin
ForeColorHeader := RGB(255,0,0);
Columns.Add('Column 1');
Columns.Add('Column 2');
Items.Add('Item 1');
end
|